package com.czxy.client;

import com.czxy.vo.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 张青卯
 */
@FeignClient("cart-service")
public interface CartClient {

    /**
     * addLoginCart 远程调用cart系统
     * @param userId 用户ID
     * @param carts 购物车集合
     * @return BaseResult
     */
    @GetMapping("/carts/addLoginCart")
    ResponseEntity<BaseResult> addLoginCart(@RequestParam("userId") Integer userId,@RequestParam("carts") String carts);

}
